package pattern10.eventcommission;

/**
 * 看NBA的同事
 * @author wdl
 */
public class NBAObserver {
    private String name;
    private ISubject sub;
    public NBAObserver(String name,ISubject sub){
        this.name=name;
        this.sub=sub;
    }

    /**
     * 关闭NBA继续工作
     */

    public void closeNBA(){
        System.out.println(sub.getSubjectState()+","+name+"关闭股票继续工作");
    }
}
